Skip to content

Add TANTOF405#1029

Open
VitroidFPV wants to merge 8 commits into
masterfrom
add-TANTOF405
Open

Add TANTOF405#1029
VitroidFPV wants to merge 8 commits into
masterfrom
add-TANTOF405

Conversation

@VitroidFPV
Copy link
Copy Markdown
Member

@VitroidFPV VitroidFPV commented Feb 10, 2026

Accompanying #1028

Summary by CodeRabbit

  • New Features
    • Added support for the TANTOF405 flight controller: complete hardware configuration with multiple accelerometer/gyro options (including LSM6D variants), barometer choices, on-screen display support, SPI flash logging, beeper, LEDs, motor/servo outputs, USB, and multiple serial/I2C/SPI interfaces.
    • Provided default runtime settings for telemetry, DSHOT behavior, current/voltage metering, and other startup parameters to simplify setup.

@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai Bot commented Feb 10, 2026

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: 309cee70-2219-44fd-9620-b6585ce1643c

📥 Commits

Reviewing files that changed from the base of the PR and between 116a350 and 36548a4.

📒 Files selected for processing (1)
  • configs/TANTOF405/config.h
🚧 Files skipped from review as they are similar to previous changes (1)
  • configs/TANTOF405/config.h

Walkthrough

Adds a new Betaflight target header configs/TANTOF405/config.h defining MCU/board/manufacturer, enabling specific sensors and peripherals, declaring comprehensive pin and timer mappings, and setting default peripheral instances and runtime parameters (DMA, SERIALRX, I2C/SPI instances, blackbox, DSHOT, meter scales, SYSTEM_HSE_MHZ).

Changes

TANTOF405 Board Configuration

Layer / File(s) Summary
Header and boilerplate
configs/TANTOF405/config.h
Adds new header with #pragma once and file boilerplate.
Target identity and feature flags
configs/TANTOF405/config.h
Defines FC_TARGET_MCU, BOARD_NAME, MANUFACTURER_ID and USE_* macros for accel/gyro/baro/flash/MAX7456 variants.
Pin assignments and peripheral pins
configs/TANTOF405/config.h
Declares pins for motors/servos/beeper/PPM/LEDs/UART/I2C/SPI/ADC/USB/ESC/flash/OSD/gyro EXTI/CS and related peripheral pins.
Timer pin mapping
configs/TANTOF405/config.h
Defines TIMER_PIN_MAPPING mapping timer channels to output pins and PWM indices.
Runtime defaults and instance selections
configs/TANTOF405/config.h
Adds ADC/DMA option, SERIALRX_UART, I2C instance selections for MAG/BARO, default blackbox device, DSHOT defaults, meter sources/scale, BEEPER_INVERTED, SYSTEM_HSE_MHZ, and SPI instance selections for MAX7456/flash/gyro.

Estimated code review effort

🎯 3 (Moderate) | ⏱️ ~20 minutes

Possibly related PRs

  • betaflight/config#1061: Adds a new board config header with similar feature flags and pin/timer mapping structure.
  • betaflight/config#983: Adds a similar STM32F405 board config/header with overlapping macros and timer/pin mappings.
  • betaflight/config#1048: Adds/uses USE_ACCGYRO_LSM6DSV16X / USE_ACCGYRO_LSM6DSK320X sensor macros used across board configs.

Suggested reviewers

  • haslinghuis
  • ot0tot
  • sugaarK
🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Description check ⚠️ Warning The PR description is incomplete and lacks critical information required by the template, including hardware compliance details, schematics review status, testing confirmations, and guideline adherence checklist. Complete the mandatory checklist items (schematics review, hardware testing, guidelines compliance) and add hardware compliance details as specified in the template.
✅ Passed checks (4 passed)
Check name Status Explanation
Title check ✅ Passed The title 'Add TANTOF405' is specific and directly describes the main change—adding a new board configuration file for the TANTOF405 flight controller.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch add-TANTOF405

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@VitroidFPV VitroidFPV self-assigned this Feb 10, 2026
Comment thread configs/TANTOF405/config.h Outdated
Comment thread configs/TANTOF405/config.h Outdated
Comment thread configs/TANTOF405/config.h Outdated
#define DEFAULT_DSHOT_BITBANG DSHOT_BITBANG_OFF
#define DEFAULT_CURRENT_METER_SOURCE CURRENT_METER_ADC
#define DEFAULT_VOLTAGE_METER_SOURCE VOLTAGE_METER_ADC
#define DEFAULT_CURRENT_METER_SCALE 200
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does this need to be included?

Comment thread configs/TANTOF405/config.h Outdated
Comment thread configs/TANTOF405/config.h Outdated
#define GYRO_1_CS_PIN PA4
#define USB_DETECT_PIN PC5

#define TIMER_PIN_MAPPING \
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

DMA2:
Stream 0 - ADC1
Stream 1 - TIM1_CH1
Stream 2 - SPI1_RX
Stream 3 - SPI1_TX/Open
Stream 4 - TIM8_CH3
Stream 5 - SPI1_TX/Open
Stream 6 - TIM1_CH2
Stream 7 - TIM8_CH4

Co-authored-by: ot0tot <36753790+ot0tot@users.noreply.github.com>
VitroidFPV and others added 4 commits February 10, 2026 21:07
Co-authored-by: ot0tot <36753790+ot0tot@users.noreply.github.com>
Co-authored-by: ot0tot <36753790+ot0tot@users.noreply.github.com>
Co-authored-by: ot0tot <36753790+ot0tot@users.noreply.github.com>
Co-authored-by: ot0tot <36753790+ot0tot@users.noreply.github.com>
@sugaarK
Copy link
Copy Markdown
Member

sugaarK commented Mar 2, 2026

to be clear the lsm16 is not recommended we have been unable to get it working to a level that we would endorse it. and do these guys want a t1 target if so they need to email us

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants